Conversation
|
@ajworkos thanks so much for the contribution, it's in our queue to review in the next couple of weeks. Cheers! |
|
👋 Any feedback on this, or even how launch darkly feels about the concept of seeding the dev server would be much appreciated! 🙇 |
|
Absolutely @ajworkos! I've started taking a look - i think its a fine approach to resolve some of the friction you're having in ci. The team will keep this in mind in case we find a different solution for enabling the dev server in ci to power the LaunchDarkly dependent tests! Glad you've been finding the tool useful! |
nieblara
left a comment
There was a problem hiding this comment.
Nice! Thanks again! We'll be queuing up a release for this, it might be a week or so before we can get to that - if you want to build this yourself in the meantime, thats totally doable too! https://github.com/launchdarkly/ldcli?tab=readme-ov-file#running-a-local-build-of-the-cli
Requirements
Related issues
#634
Describe the solution you've provided
Context is in #634, but to restate, we've found that if this environment (we pull from development) is unintentionally modified, it caused our tests to fail as our tests relied on certain flag values. This action at a distance has bitten us a few times to the point where we've committed our binary dev server DB to our repo. This solution is also unsatisfactory because
Provide an
import-projectcommand that accepts afileargument, the contents of which is the JSON file exported from the dev server endpoint that shows all overrides and availableVariations - e.g. http://localhost:8765/dev/projects/default?expand=overrides&expand=availableVariations.This PR also adds
--expandarguments to theget-projectcommand so that we can easily dump the file needed for seeding.Usage:
Describe alternatives you've considered
Additional context
Add any other context about the pull request here.